<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>win10家庭版安装Docker及使用 | GLIMMER小作坊的工具人</title>
    <meta name="description" content="时间太瘦，指尖太宽，且行且珍惜">
    <meta name="generator" content="VuePress 1.4.0">
    <link rel="icon" href="/vuepress/image.png">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
  <script language="javascript" type="text/javascript" src="https://cdn.staticfile.org/jquery/1.7.2/jquery.min.js"></script>
  <script language="javascript" type="text/javascript" src="/js/MouseClickEffect.js"></script>
    
    <link rel="preload" href="/assets/css/0.styles.7c2ddbea.css" as="style"><link rel="preload" href="/assets/js/app.c1719760.js" as="script"><link rel="preload" href="/assets/js/5.882ae477.js" as="script"><link rel="preload" href="/assets/js/1.ad2741e3.js" as="script"><link rel="preload" href="/assets/js/2.b0f5b6a6.js" as="script"><link rel="preload" href="/assets/js/103.bfb1dc09.js" as="script"><link rel="preload" href="/assets/js/20.a8dae886.js" as="script"><link rel="prefetch" href="/assets/js/10.061af50f.js"><link rel="prefetch" href="/assets/js/100.85317b0d.js"><link rel="prefetch" href="/assets/js/101.8b7e5f17.js"><link rel="prefetch" href="/assets/js/102.724e3dd3.js"><link rel="prefetch" href="/assets/js/104.bc172956.js"><link rel="prefetch" href="/assets/js/105.dd66d16a.js"><link rel="prefetch" href="/assets/js/106.934eb59f.js"><link rel="prefetch" href="/assets/js/107.6f0b24bd.js"><link rel="prefetch" href="/assets/js/108.1e5abf7c.js"><link rel="prefetch" href="/assets/js/109.0b133847.js"><link rel="prefetch" href="/assets/js/11.c1bf9f21.js"><link rel="prefetch" href="/assets/js/110.4452fac4.js"><link rel="prefetch" href="/assets/js/111.8dbe7cfe.js"><link rel="prefetch" href="/assets/js/112.a2640d20.js"><link rel="prefetch" href="/assets/js/113.1776625c.js"><link rel="prefetch" href="/assets/js/114.b2f2dd05.js"><link rel="prefetch" href="/assets/js/115.4c5e3507.js"><link rel="prefetch" href="/assets/js/116.55246e31.js"><link rel="prefetch" href="/assets/js/117.73fbc87f.js"><link rel="prefetch" href="/assets/js/118.64a28e52.js"><link rel="prefetch" href="/assets/js/119.eb809170.js"><link rel="prefetch" href="/assets/js/12.50fe0adf.js"><link rel="prefetch" href="/assets/js/120.103458ff.js"><link rel="prefetch" href="/assets/js/121.ce43023f.js"><link rel="prefetch" href="/assets/js/122.9ccdb852.js"><link rel="prefetch" href="/assets/js/123.61815387.js"><link rel="prefetch" href="/assets/js/124.08e66733.js"><link rel="prefetch" href="/assets/js/125.8057f00b.js"><link rel="prefetch" href="/assets/js/126.31a70f61.js"><link rel="prefetch" href="/assets/js/127.3b67b02c.js"><link rel="prefetch" href="/assets/js/128.b577a571.js"><link rel="prefetch" href="/assets/js/129.9d910324.js"><link rel="prefetch" href="/assets/js/13.a866e204.js"><link rel="prefetch" href="/assets/js/130.8aca0d81.js"><link rel="prefetch" href="/assets/js/131.ea811b09.js"><link rel="prefetch" href="/assets/js/132.76bfb2dc.js"><link rel="prefetch" href="/assets/js/133.a2c35376.js"><link rel="prefetch" href="/assets/js/134.06ae0a00.js"><link rel="prefetch" href="/assets/js/14.78f9cc08.js"><link rel="prefetch" href="/assets/js/15.d4060631.js"><link rel="prefetch" href="/assets/js/16.3434d0b6.js"><link rel="prefetch" href="/assets/js/17.eda8d321.js"><link rel="prefetch" href="/assets/js/18.bdd63861.js"><link rel="prefetch" href="/assets/js/19.fbd1cf33.js"><link rel="prefetch" href="/assets/js/21.b6f04af7.js"><link rel="prefetch" href="/assets/js/22.f7430b65.js"><link rel="prefetch" href="/assets/js/23.9ac373d9.js"><link rel="prefetch" href="/assets/js/24.e22a443a.js"><link rel="prefetch" href="/assets/js/25.36f2adb4.js"><link rel="prefetch" href="/assets/js/26.5c85b2c3.js"><link rel="prefetch" href="/assets/js/27.51c2e282.js"><link rel="prefetch" href="/assets/js/28.3b5555cb.js"><link rel="prefetch" href="/assets/js/29.f290854b.js"><link rel="prefetch" href="/assets/js/30.6495d68c.js"><link rel="prefetch" href="/assets/js/31.d2291244.js"><link rel="prefetch" href="/assets/js/32.67cb6a0b.js"><link rel="prefetch" href="/assets/js/33.ebac8658.js"><link rel="prefetch" href="/assets/js/34.b4056456.js"><link rel="prefetch" href="/assets/js/35.2d35ec45.js"><link rel="prefetch" href="/assets/js/36.6da1ac84.js"><link rel="prefetch" href="/assets/js/37.8d970d48.js"><link rel="prefetch" href="/assets/js/38.94dfd07f.js"><link rel="prefetch" href="/assets/js/39.b0e22253.js"><link rel="prefetch" href="/assets/js/40.a0e6dc1e.js"><link rel="prefetch" href="/assets/js/41.67345a28.js"><link rel="prefetch" href="/assets/js/42.bae9c869.js"><link rel="prefetch" href="/assets/js/43.d62be483.js"><link rel="prefetch" href="/assets/js/44.2efe511e.js"><link rel="prefetch" href="/assets/js/45.e44be0c9.js"><link rel="prefetch" href="/assets/js/46.429897b0.js"><link rel="prefetch" href="/assets/js/47.026450f6.js"><link rel="prefetch" href="/assets/js/48.1b6ac3b2.js"><link rel="prefetch" href="/assets/js/49.0d5de7d1.js"><link rel="prefetch" href="/assets/js/50.bcaa0633.js"><link rel="prefetch" href="/assets/js/51.bbe1f24b.js"><link rel="prefetch" href="/assets/js/52.4d4d4941.js"><link rel="prefetch" href="/assets/js/53.b3074dbb.js"><link rel="prefetch" href="/assets/js/54.7b51af21.js"><link rel="prefetch" href="/assets/js/55.4880a3a5.js"><link rel="prefetch" href="/assets/js/56.0fbaa129.js"><link rel="prefetch" href="/assets/js/57.fa32ec0f.js"><link rel="prefetch" href="/assets/js/58.3ab779c1.js"><link rel="prefetch" href="/assets/js/59.f7416e71.js"><link rel="prefetch" href="/assets/js/6.cfda4e49.js"><link rel="prefetch" href="/assets/js/60.f997e769.js"><link rel="prefetch" href="/assets/js/61.b6ce2d29.js"><link rel="prefetch" href="/assets/js/62.484e896b.js"><link rel="prefetch" href="/assets/js/63.7436e7b5.js"><link rel="prefetch" href="/assets/js/64.0af3fb9d.js"><link rel="prefetch" href="/assets/js/65.cc6b1063.js"><link rel="prefetch" href="/assets/js/66.b226aae4.js"><link rel="prefetch" href="/assets/js/67.23fa8790.js"><link rel="prefetch" href="/assets/js/68.fb8897ef.js"><link rel="prefetch" href="/assets/js/69.ca44c95b.js"><link rel="prefetch" href="/assets/js/7.4ce0026c.js"><link rel="prefetch" href="/assets/js/70.dc65b621.js"><link rel="prefetch" href="/assets/js/71.627c41f8.js"><link rel="prefetch" href="/assets/js/72.30703fc7.js"><link rel="prefetch" href="/assets/js/73.48afc079.js"><link rel="prefetch" href="/assets/js/74.1181783d.js"><link rel="prefetch" href="/assets/js/75.c70d8736.js"><link rel="prefetch" href="/assets/js/76.a2c7c0b4.js"><link rel="prefetch" href="/assets/js/77.ba42676c.js"><link rel="prefetch" href="/assets/js/78.1bdfbac5.js"><link rel="prefetch" href="/assets/js/79.5343f801.js"><link rel="prefetch" href="/assets/js/8.94e9fcf2.js"><link rel="prefetch" href="/assets/js/80.aaff9fb9.js"><link rel="prefetch" href="/assets/js/81.7855e1f9.js"><link rel="prefetch" href="/assets/js/82.a522f853.js"><link rel="prefetch" href="/assets/js/83.d417cbce.js"><link rel="prefetch" href="/assets/js/84.aa477229.js"><link rel="prefetch" href="/assets/js/85.737ceb08.js"><link rel="prefetch" href="/assets/js/86.76914c69.js"><link rel="prefetch" href="/assets/js/87.ca65d02a.js"><link rel="prefetch" href="/assets/js/88.ecd6fbe0.js"><link rel="prefetch" href="/assets/js/89.8321befc.js"><link rel="prefetch" href="/assets/js/9.8972d482.js"><link rel="prefetch" href="/assets/js/90.3130a41f.js"><link rel="prefetch" href="/assets/js/91.662fea10.js"><link rel="prefetch" href="/assets/js/92.afebfc2f.js"><link rel="prefetch" href="/assets/js/93.93c4872e.js"><link rel="prefetch" href="/assets/js/94.1ef96f22.js"><link rel="prefetch" href="/assets/js/95.76a35ecf.js"><link rel="prefetch" href="/assets/js/96.afd7ca1a.js"><link rel="prefetch" href="/assets/js/97.e5ffb86e.js"><link rel="prefetch" href="/assets/js/98.7bb55507.js"><link rel="prefetch" href="/assets/js/99.4ded3fca.js"><link rel="prefetch" href="/assets/js/vendors~flowchart.b04affb9.js">
    <link rel="stylesheet" href="/assets/css/0.styles.7c2ddbea.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div><div class="theme-container" data-v-4d80cb8a><div data-v-4d80cb8a><div id="loader-wrapper" class="loading-wrapper" data-v-4b73742e data-v-4d80cb8a data-v-4d80cb8a><div class="loader-main" data-v-4b73742e><div data-v-4b73742e></div><div data-v-4b73742e></div><div data-v-4b73742e></div><div data-v-4b73742e></div></div> <!----> <!----></div> <div class="password-shadow password-wrapper-out" style="display:none;" data-v-0b619cf4 data-v-4d80cb8a data-v-4d80cb8a><h3 class="title" style="display:none;" data-v-0b619cf4 data-v-0b619cf4>GLIMMER小作坊的工具人</h3> <!----> <label id="box" class="inputBox" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><input type="password" value="" data-v-0b619cf4> <span data-v-0b619cf4>Konck! Knock!</span> <button data-v-0b619cf4>OK</button></label> <div class="footer" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><span data-v-0b619cf4><i class="iconfont reco-theme" data-v-0b619cf4></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-0b619cf4>vuePress-theme-reco</a></span> <span data-v-0b619cf4><i class="iconfont reco-copyright" data-v-0b619cf4></i> <a data-v-0b619cf4><span data-v-0b619cf4>LJoson</span>
            
          <span data-v-0b619cf4>2020 - </span>
          2025
        </a></span></div></div> <div class="hide" data-v-4d80cb8a><header class="navbar" data-v-4d80cb8a><div title="导航" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">GLIMMER小作坊的工具人</span></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/index.html" class="nav-link"><i class="iconfont reco-home"></i>
  Home
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/AI及机器人等/" class="nav-link"><i class="iconfont undefined"></i>
  AI及机器人等
</a></li><li class="dropdown-item"><!----> <a href="/categories/算法等/" class="nav-link"><i class="iconfont undefined"></i>
  算法等
</a></li><li class="dropdown-item"><!----> <a href="/categories/计算机技术等/" class="nav-link"><i class="iconfont undefined"></i>
  计算机技术等
</a></li><li class="dropdown-item"><!----> <a href="/categories/电子设计等/" class="nav-link"><i class="iconfont undefined"></i>
  电子设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/杂谈/" class="nav-link"><i class="iconfont undefined"></i>
  杂谈
</a></li><li class="dropdown-item"><!----> <a href="/categories/游戏设计等/" class="nav-link"><i class="iconfont undefined"></i>
  游戏设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/笔记等/" class="nav-link"><i class="iconfont undefined"></i>
  笔记等
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-document"></i>
      我的
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>Projects🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/projects/github.html" class="nav-link"><i class="iconfont undefined"></i>
  Project on github
</a></li></ul></li><li class="dropdown-item"><h4>Station🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="https://github.com/LJoson" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-subitem"><a href="https://blog.csdn.net/qq_43743037" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  CSDN
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></li></ul></div></div><div class="nav-item"><a href="/timeLine/index.html" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><a href="https://ljoson.github.io/arXiv_daily" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-document"></i>
  每日论文摘要
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="/about/aboutme.html" class="nav-link"><i class="iconfont reco-message"></i>
  关于坊主
</a></div> <!----></nav></div></header> <div class="sidebar-mask" data-v-4d80cb8a></div> <aside class="sidebar" data-v-4d80cb8a><div class="personal-info-wrapper" data-v-79645776><img src="/vuepress/Headimage.jpg" alt="author-avatar" class="personal-img" data-v-79645776> <h3 class="name" data-v-79645776>
    LJoson
  </h3> <div class="num" data-v-79645776><div data-v-79645776><h3 data-v-79645776>105</h3> <h6 data-v-79645776>文章</h6></div> <div data-v-79645776><h3 data-v-79645776>49</h3> <h6 data-v-79645776>标签</h6></div></div> <hr data-v-79645776></div> <nav class="nav-links"><div class="nav-item"><a href="/index.html" class="nav-link"><i class="iconfont reco-home"></i>
  Home
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      分类
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/AI及机器人等/" class="nav-link"><i class="iconfont undefined"></i>
  AI及机器人等
</a></li><li class="dropdown-item"><!----> <a href="/categories/算法等/" class="nav-link"><i class="iconfont undefined"></i>
  算法等
</a></li><li class="dropdown-item"><!----> <a href="/categories/计算机技术等/" class="nav-link"><i class="iconfont undefined"></i>
  计算机技术等
</a></li><li class="dropdown-item"><!----> <a href="/categories/电子设计等/" class="nav-link"><i class="iconfont undefined"></i>
  电子设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/杂谈/" class="nav-link"><i class="iconfont undefined"></i>
  杂谈
</a></li><li class="dropdown-item"><!----> <a href="/categories/游戏设计等/" class="nav-link"><i class="iconfont undefined"></i>
  游戏设计等
</a></li><li class="dropdown-item"><!----> <a href="/categories/笔记等/" class="nav-link"><i class="iconfont undefined"></i>
  笔记等
</a></li></ul></div></div><div class="nav-item"><a href="/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-document"></i>
      我的
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><h4>Projects🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="/projects/github.html" class="nav-link"><i class="iconfont undefined"></i>
  Project on github
</a></li></ul></li><li class="dropdown-item"><h4>Station🎈</h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="https://github.com/LJoson" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  GitHub
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-subitem"><a href="https://blog.csdn.net/qq_43743037" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont undefined"></i>
  CSDN
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></li></ul></div></div><div class="nav-item"><a href="/timeLine/index.html" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div><div class="nav-item"><a href="https://ljoson.github.io/arXiv_daily" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-document"></i>
  每日论文摘要
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="/about/aboutme.html" class="nav-link"><i class="iconfont reco-message"></i>
  关于坊主
</a></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/views/" class="sidebar-link">概览</a></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>AI及机器人等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>算法等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>计算机技术等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>硬件及运动控制等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>杂谈</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/views/freetalk/why.html" class="sidebar-link">尽情奔跑，砥砺前行</a></li><li><a href="/views/freetalk/color.html" class="sidebar-link">浅谈图像颜色空间及相互变换</a></li><li><a href="/views/freetalk/Fourier.html" class="sidebar-link">一个有趣的傅里叶动画</a></li><li><a href="/views/freetalk/android.html" class="sidebar-link">Android端模型部署</a></li><li><a href="/views/freetalk/ip0.html" class="sidebar-link">TCP/IP初识</a></li><li><a href="/views/freetalk/picgo.html" class="sidebar-link">PicGo+typora搭建在线图床</a></li><li><a href="/views/freetalk/docker00.html" class="active sidebar-link">win10家庭版安装Docker及使用</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#简介" class="sidebar-link">简介</a></li><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#windows-10家庭版-安装hyper-v" class="sidebar-link">Windows 10家庭版 安装HYPER-V</a></li><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#下载docker-for-windows及安装" class="sidebar-link">下载Docker for Windows及安装</a></li><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#docker使用" class="sidebar-link">Docker使用</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#docker-镜像加速" class="sidebar-link">Docker 镜像加速</a></li><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#docker-命令" class="sidebar-link">docker 命令</a></li><li class="sidebar-sub-header"><a href="/views/freetalk/docker00.html#docker工具拉取加速" class="sidebar-link">docker工具拉取加速</a></li></ul></li></ul></li><li><a href="/views/freetalk/self_improvement.html" class="sidebar-link">自我驱动，自我提升</a></li><li><a href="/views/freetalk/cicd/fix.html" class="sidebar-link">CI/CD自动化集成测试部署</a></li><li><a href="/views/freetalk/spider/github.html" class="sidebar-link">github数据分析</a></li><li><a href="/views/freetalk/spider/zhihu.html" class="sidebar-link">知乎爬虫</a></li><li><a href="/views/freetalk/vsc/tools.html" class="sidebar-link">vscode常用小插件</a></li><li><a href="/views/freetalk/wsl2/wsl.html" class="sidebar-link">在Windows10上用WSL/WSL2优雅开发</a></li><li><a href="/views/freetalk/wsl2/note.html" class="sidebar-link">WSL/WSL2优雅开发实录</a></li><li><a href="/views/freetalk/wsl2/wslg.html" class="sidebar-link">WSL2 系统上运行 Linux GUI 应用</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>小游戏设计等</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>笔记等</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-0b619cf4 data-v-4d80cb8a><h3 class="title" style="display:none;" data-v-0b619cf4 data-v-0b619cf4>win10家庭版安装Docker及使用</h3> <!----> <label id="box" class="inputBox" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><input type="password" value="" data-v-0b619cf4> <span data-v-0b619cf4>Konck! Knock!</span> <button data-v-0b619cf4>OK</button></label> <div class="footer" style="display:none;" data-v-0b619cf4 data-v-0b619cf4><span data-v-0b619cf4><i class="iconfont reco-theme" data-v-0b619cf4></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-0b619cf4>vuePress-theme-reco</a></span> <span data-v-0b619cf4><i class="iconfont reco-copyright" data-v-0b619cf4></i> <a data-v-0b619cf4><span data-v-0b619cf4>LJoson</span>
            
          <span data-v-0b619cf4>2020 - </span>
          2025
        </a></span></div></div> <div data-v-4d80cb8a><main class="page"><!----> <div class="page-title" style="display:none;"><h1>win10家庭版安装Docker及使用</h1> <hr> <div data-v-09556aba><i class="iconfont reco-account" data-v-09556aba><span data-v-09556aba>LJoson</span></i> <i class="iconfont reco-date" data-v-09556aba><span data-v-09556aba>2020-10-17 22:00:12</span></i> <i class="iconfont reco-eye" data-v-09556aba><span id="/views/freetalk/docker00.html" data-flag-title="Your Article Title" class="leancloud-visitors" data-v-09556aba><a class="leancloud-visitors-count" style="font-size:.9rem;font-weight:normal;color:#999;"></a></span></i> <i class="iconfont reco-tag tags" data-v-09556aba><span class="tag-item" data-v-09556aba>
      LINUX
    </span><span class="tag-item" data-v-09556aba>
      docker
    </span></i></div></div> <div class="theme-reco-content content__default" style="display:none;"><p></p><div class="table-of-contents"><ul><li><a href="#简介">简介</a></li><li><a href="#windows-10家庭版-安装hyper-v">Windows 10家庭版 安装HYPER-V</a></li><li><a href="#下载docker-for-windows及安装">下载Docker for Windows及安装</a></li><li><a href="#docker使用">Docker使用</a><ul><li><a href="#docker-镜像加速">Docker 镜像加速</a></li><li><a href="#docker-命令">docker 命令</a></li><li><a href="#docker工具拉取加速">docker工具拉取加速</a></li></ul></li></ul></div><p></p> <h2 id="简介"><a href="#简介" class="header-anchor">#</a> 简介</h2> <p>1、首先来了解一下什么是Docker：</p> <p>Docker 是起源于 Linux 上的技术，是基于 Linux 内置的 Namespace 和 CGroup 等系统内隔离机制而抽象出来的一种轻虚拟化技术。</p> <p>微软与 Docker 在 2014 年宣布了合作，以期将容器技术带到 Windows Server 操作系统，并为传统的 Windows 应用程序的容器化改造提供更直接的支持。</p> <p>与 Linux 类似，Windows 也新新抽象出来了 CGroup 和 Namespace 的概念，并提供出一个新的抽象层次 Compute Service，即宿主机运算服务（Host Compute Service，hcs）。相较于底层可能经常重构的实现细节，hcs 旨在为外部（比如 Docker 引擎）提供较稳定的操作接口。</p> <p>Docker 可以以两种形式运行在 Windows 上：以 Hyper-V 虚拟机的形式运行 Linux 格式的容器，或者运行原生的 Windows 容器。其中前者运行 Linux 格式的应用程序，后者能运行 Windows 应用程序。</p> <p>2、如何在Windows上面安装docker？</p> <p>如果安装了win10，可以采用安装包直接安装，现在 Docker 有专门的 Win10 专业版系统的安装包，需要开启Hyper-V。</p> <p>3、然后来了解一下什么是Hyper-V：
Hyper-V是微软的一款虚拟化产品，是微软第一个采用类似Vmware和Citrix开源Xen一样的基于hypervisor的技术。Hyper-V 让你可以在 Windows 上以虚拟机形式运行多个操作系统。</p> <p>官方文档提示：HYPER-V 在 64 位版本的 Windows 10 专业版、 企业版和教育版上可用。 不适用于家庭版。</p> <h2 id="windows-10家庭版-安装hyper-v"><a href="#windows-10家庭版-安装hyper-v" class="header-anchor">#</a> Windows 10家庭版 安装HYPER-V</h2> <p>默认情况下win10家庭版是没有hyper-V的，但将如下复制到.cmd文件中并执行，可完成hyper-V安装，是可以使用hyper-V的。</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>pushd &quot;%~dp0&quot;
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum &gt;hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^&gt;nul') do dism /online /norestart /add-package:&quot;%SystemRoot%\servicing\Packages\%%i&quot;
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL


</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><p>以管理员身份执行hyperv.cmd文件。
如果系统要你重启，便重启。
完成安装后
<img src="https://upload-images.jianshu.io/upload_images/5756207-d6106fd2e53a5c97.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt=""></p> <p>然后以管理员身份打开cmd。
执行如下命令：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>REG ADD &quot;HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion&quot; /v EditionId /T REG_EXPAND_SZ /d Professional /F
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>可以伪装成win10专业版。</p> <div class="custom-block tip"><p class="custom-block-title">注意</p> <p>安装Hyper-V服务之后，发现开启不了VMware里的虚拟机，每次都提示需要禁用Device/Credential Guard。</p> <p>参考解决:</p> <p><a href="https://blog.csdn.net/weixin_42453837/article/details/94892106?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control" target="_blank" rel="noopener noreferrer">https://blog.csdn.net/weixin_42453837/article/details/94892106?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <p><a href="https://blog.csdn.net/qq_36761831/article/details/81175736" target="_blank" rel="noopener noreferrer">https://blog.csdn.net/qq_36761831/article/details/81175736<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p></div> <h2 id="下载docker-for-windows及安装"><a href="#下载docker-for-windows及安装" class="header-anchor">#</a> 下载Docker for Windows及安装</h2> <p>官网下载链接（需要一点科学手段）： <a href="https://store.docker.com/editions/community/docker-ce-desktop-windows" target="_blank" rel="noopener noreferrer">https://store.docker.com/editions/community/docker-ce-desktop-windows<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>
国内镜像：
<a href="https://oomake.com/download/docker-windows" target="_blank" rel="noopener noreferrer">https://oomake.com/download/docker-windows<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> （百度网盘）
[https://mirrors.ustc.edu.cn/docker-ce/]https://mirrors.ustc.edu.cn/docker-ce/)（版本更新不及时）</p> <p>下载后直接安装，安装时注意取消勾选window容器（默认不会勾选）。</p> <p>Docker安装成功后，执行cmd命令</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker version
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>就可以验证安装是否成功。</p> <div class="custom-block tip"><p class="custom-block-title">参考文档</p> <p>https://blog.csdn.net/tidu2chengfo/article/details/84892915</p> <p>https://www.cnblogs.com/samwu/p/10360943.html</p></div> <h2 id="docker使用"><a href="#docker使用" class="header-anchor">#</a> Docker使用</h2> <h3 id="docker-镜像加速"><a href="#docker-镜像加速" class="header-anchor">#</a> Docker 镜像加速</h3> <p>国内从 DockerHub 拉取镜像有时会遇到困难，此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务，例如：</p> <p>网易：https://hub-mirror.c.163.com/
阿里云：https://&lt;你的ID&gt;.mirror.aliyuncs.com
官方中国加速器：https://registry.docker-cn.com
ustc 的镜像：https://docker.mirrors.ustc.edu.cn</p> <p>当配置某一个加速器地址之后，若发现拉取不到镜像，请切换到另一个加速器地址。国内各大云服务商均提供了 Docker 镜像加速服务，建议根据运行 Docker 的云平台选择对应的镜像加速服务。</p> <p>阿里云镜像获取地址：<a href="https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors" target="_blank" rel="noopener noreferrer">https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>，登陆后，左侧菜单选中镜像加速器就可以看到你的专属地址了：
<img src="https://www.runoob.com/wp-content/uploads/2019/10/02F3AF04-8203-4E3B-A5AF-96973DBE515F.jpg" alt=""></p> <p>之前还有 Docker 官方加速器 https://registry.docker-cn.com ，现在好像已经不能使用了，我们可以多添加几个国内的镜像，如果有不能使用的，会切换到可以使用的镜像来拉取。
对于使用 Windows 10 的系统，在系统右下角托盘 Docker 图标内右键菜单选择 Settings，打开配置窗口后左侧导航菜单选择 Docker Engine。在 Registrymirrors 一栏中填写加速器地址 例如:https://registry.docker-cn.com ，之后点击 Apply 保存后 Docker 就会重启并应用配置的镜像地址了。</p> <h3 id="docker-命令"><a href="#docker-命令" class="header-anchor">#</a> docker 命令</h3> <p>1.拉取镜像</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker pull 镜像名
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>2.启动容器
以下命令使用 镜像名启动一个容器，参数为以命令行模式进入该容器：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker run -it 镜像名 /bin/bash
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>参数说明：</p> <p>-i: 交互式操作。
-t: 终端。
镜像名:镜像名。
/bin/bash：放在镜像名后的是命令，这里我们希望有个交互式 Shell，因此用的是 /bin/bash。
要退出终端，直接输入 exit</p> <ul><li>注意，如果你已经创建了容器，那你只需要启动容器，并且进入即可。 否则，你之前的改动不会在新创建的容器中生效。
查看之前创建的容器</li></ul> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker container ls -a
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>可以通过命令docker container rename 来重命名你的容器。</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker container rename 本来的names 重命名的names

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>3.启动容器</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker start 容器名/names
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>4.进入容器</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>docker exec -ti 容器名/names /bin/bash
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>5.要退出终端，直接输入 exit</p> <div class="custom-block tip"><p class="custom-block-title">参考文档</p> <p>https://www.runoob.com/docker/docker-mirror-acceleration.html</p></div> <h3 id="docker工具拉取加速"><a href="#docker工具拉取加速" class="header-anchor">#</a> docker工具拉取加速</h3> <p>在我们使用docker可能会遇到无法从Github下载东西的情况，会遇到如下情况：</p> <ul><li>GitHub的raw.githubusercontent.com无法连接问题</li> <li>docker 容器出现sudo vi wget yum都不能使用的情况下换源</li></ul> <p>解决办法
1.进行apt-get
我们首先想到的办法肯定是安装，但是会发现这个过程需要不少时间,但是经过实践证明还是得等。</p> <div class="language- line-numbers-mode"><pre class="language-text"><code># 先更新我们的包管理工具
apt-get update
# 然后安装我们需要的vim，习惯了vim编辑
apt-get install vim

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>有了vim之后就好办了。</p> <p>2.换源，对于win以及wsl使用、linux、docker都适用
更换apt源,查看系统版本：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>lsb_release -a
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>修改 /etc/apt/sources.list</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>vi /etc/apt/source.list
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>替换</p> <div class="language- line-numbers-mode"><pre class="language-text"><code># 阿里云源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
##測試版源
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
# 源碼
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
##測試版源
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse


# 清华大学源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
##測試版源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# 源碼
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
##測試版源
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse


</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br></div></div><p>Esc+:+wq保存退出。</p> <p>3.修改hosts</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>vi /etc/hosts

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>添加以下内容保存即可(IP地址查询后相应修改，可以ping不同IP的延时 选择最佳IP地址）</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>140.82.114.4  github.com
199.232.5.194 github.global.ssl.fastly.net
140.82.114.9  codeload.github.com
185.199.108.133 raw.githubusercontent.com
assets-cdn.github.com
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
//上面的网址IP也许会发生变化，这样就要对应修改ip


GitHub的网址IP可能会变化，可以用下面的网址查
[https://www.ipaddress.com/](https://www.ipaddress.com/)
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br></div></div><p>重启网络</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>sudo service networking restart
#or
/etc/init.d/networking restart 

</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><div class="custom-block tip"><p class="custom-block-title">参考文档</p> <p>https://www.codenong.com/cs106177126/</p> <p>https://www.ioiox.com/archives/62.html</p> <p>https://blog.csdn.net/weixin_44598727/article/details/108300731?utm_source=app</p> <p>https://blog.csdn.net/weixin_43745072/article/details/105667075?utm_source=app</p> <p>https://blog.csdn.net/weixin_38890593/article/details/94624056</p></div></div> <footer class="page-edit" style="display:none;"><!----> <div class="last-updated"><span class="prefix">最后更新时间: </span> <span class="time">2023/01/13, 20:39:48</span></div></footer> <!----> <!----> <div class="article-list" data-v-61e7bf3a><div class="article-title" data-v-61e7bf3a><a href="/timeline/" class="iconfont icon-shizhong" data-v-61e7bf3a>最近更新</a></div> <div class="article-wrapper" data-v-61e7bf3a><dl data-v-61e7bf3a><dd data-v-61e7bf3a>01</dd> <dt data-v-61e7bf3a><a href="/views/AI/ebot/ebot1.html" data-v-61e7bf3a><div data-v-61e7bf3a>技术随笔《二》：人形机器人模仿学习与传统控制方法概述</div></a> <span data-v-61e7bf3a>04-12</span></dt></dl><dl data-v-61e7bf3a><dd data-v-61e7bf3a>02</dd> <dt data-v-61e7bf3a><a href="/views/AI/ebot/ebot0.html" data-v-61e7bf3a><div data-v-61e7bf3a>技术随笔《一》：人形机器人控制算法概述</div></a> <span data-v-61e7bf3a>04-10</span></dt></dl><dl data-v-61e7bf3a><dd data-v-61e7bf3a>03</dd> <dt data-v-61e7bf3a><a href="/views/AI/coder/" data-v-61e7bf3a><div data-v-61e7bf3a>编解码器详解</div></a> <span data-v-61e7bf3a>12-26</span></dt></dl></div> <div data-v-61e7bf3a><a href="/timeline/" class="article-more" data-v-61e7bf3a>更多文章 &gt;</a></div></div></main> <!----> <div class="comments-wrapper" data-v-4d80cb8a><div class="valine-wrapper"><div id="valine"></div></div></div></div></div></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-a81d141e data-v-a81d141e><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-a81d141e><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-a81d141e></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-a81d141e></path></svg></div><!----><div data-v-4a66ed39><div class="DetailsOpenFlag" style="right:1rem;bottom:9rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;font-size:14px;font-weight:500;display:none;" data-v-4a66ed39>
 展开

</div></div><div class="kanbanniang" data-v-3c101199><div class="banniang-container" style="display:;" data-v-3c101199><div class="messageBox" style="right:68px;bottom:190px;display:none;" data-v-3c101199>
      欢迎来到 GLIMMER小作坊的工具人
    </div> <div class="operation" style="right:90px;bottom:40px;display:;" data-v-3c101199><i class="kbnfont kbn-ban-home ban-home" data-v-3c101199></i> <i class="kbnfont kbn-ban-message message" data-v-3c101199></i> <i class="kbnfont kbn-ban-close close" data-v-3c101199></i> <a target="_blank" href="https://vuepress-theme-reco.recoluan.com/views/plugins/kanbanniang.html" data-v-3c101199><i class="kbnfont kbn-ban-info info" data-v-3c101199></i></a> <i class="kbnfont kbn-ban-theme skin" style="display:;" data-v-3c101199></i></div> <canvas id="banniang" width="150" height="220" class="live2d" style="right:90px;bottom:-20px;opacity:0.9;" data-v-3c101199></canvas></div> <div class="showBanNiang" style="display:none;" data-v-3c101199>
    看板娘
  </div></div></div></div>
    <script src="/assets/js/app.c1719760.js" defer></script><script src="/assets/js/5.882ae477.js" defer></script><script src="/assets/js/1.ad2741e3.js" defer></script><script src="/assets/js/2.b0f5b6a6.js" defer></script><script src="/assets/js/103.bfb1dc09.js" defer></script><script src="/assets/js/20.a8dae886.js" defer></script>
  </body>
</html>
